package com.cnswhy.cloud.server.core.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.TreeEntity;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 实体类
 * 商品分类
 * </p>
 *
 * @author cnswhy
 * @since 2020-10-12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ShopClassifySaveDTO", description = "商品分类")
public class ShopClassifySaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称")
    //@NotEmpty(message = "分类名称不能为空")
    @Length(max = 50, message = "分类名称长度不能超过50")
    private String classifyName;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sortOrder;
    @ApiModelProperty(value = "")
    @Length(max = 255, message = "长度不能超过255")
    private String imgUrl;
    /**
     * 状态：0-启用 1-禁用 2-删除
     */
    @ApiModelProperty(value = "状态：0-启用 1-禁用 2-删除")
    @NotNull(message = "状态：0-启用 1-禁用 2-删除不能为空")
    private Integer status;
    /**
     * 审核状态：0-待审核 1-审核通过 2-审核不通过
     */
    @ApiModelProperty(value = "审核状态：0-待审核 1-审核通过 2-审核不通过")
    @NotNull(message = "审核状态：0-待审核 1-审核通过 2-审核不通过不能为空")
    private Integer verifyStatus;

    @ApiModelProperty(value = "名称")
    @NotEmpty(message = "名称不能为空")
    @Length(max = 255, message = "名称长度不能超过255")
    protected String label;

    @ApiModelProperty(value = "父ID")
    protected Long parentId;

    @ApiModelProperty(value = "排序号")
    protected Integer sortValue;
    @ApiModelProperty(value = "")
    @Length(max = 255, message = "长度不能超过255")
    private String url;
    private List<Long> specList;
}
